<template>
  <div id="app">
    <div class="head" v-if="isMenus"></div>
    <div class="main">
      <Menus v-if="isMenus"></Menus>
      <router-view/>
    </div>
  </div>
</template>
<script>
import Menus from './components/Base/Menus'

export default {
  name: 'App',
  data () {
    return {
      isMenus: true
    }
  },
  watch: {
    $route (to, from) {
      console.log(to, from)
      if (['/Login'].includes(to.path)) {
        this.isMenus = false
      }
    }
  },
  components: {
    Menus
  }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.head {
  width: 100%;
  height: 100px;
  background: red;
}
.main {
  display: flex;
}
</style>
